import Blender
import GameLogic
import GameKeys

scn = GameLogic.getCurrentScene()
ob = Blender.Object.Get('Cylinder')
co = GameLogic.getCurrentController()
obj = co.getOwner()

print 'our saved space object is: ' + obj.spaceSave
print 'our saved green object is: ' + obj.greenSave
print 'our saved red object is: ' + obj.redSave
		
scn.getObjectList()[obj.spaceSave].setVisible(True)
scn.getObjectList()[obj.greenSave].setVisible(False)
scn.getObjectList()[obj.redSave].setVisible(False)

obj.state = 0
obj.spaceSave = ''
obj.greenSave = ''
obj.redSave = ''
obj.timer = 10.0